Optimal. Leaf size=19 \[ \frac{(a-b) \tanh (c+d x)}{d}+b x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0340843, antiderivative size = 19, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {3191, 388, 206} \[ \frac{(a-b) \tanh (c+d x)}{d}+b x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3191
Rule 388
Rule 206
Rubi steps
\begin{align*} \int \text{sech}^2(c+d x) \left (a+b \sinh ^2(c+d x)\right ) \, dx &=\frac{\operatorname{Subst}\left (\int \frac{a-(a-b) x^2}{1-x^2} \, dx,x,\tanh (c+d x)\right )}{d}\\ &=\frac{(a-b) \tanh (c+d x)}{d}+\frac{b \operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\tanh (c+d x)\right )}{d}\\ &=b x+\frac{(a-b) \tanh (c+d x)}{d}\\ \end{align*}
Mathematica [A] time = 0.0138384, size = 36, normalized size = 1.89 \[ \frac{a \tanh (c+d x)}{d}+\frac{b \tanh ^{-1}(\tanh (c+d x))}{d}-\frac{b \tanh (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.056, size = 29, normalized size = 1.5 \begin{align*}{\frac{\tanh \left ( dx+c \right ) a+b \left ( dx+c-\tanh \left ( dx+c \right ) \right ) }{d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.04978, size = 63, normalized size = 3.32 \begin{align*} b{\left (x + \frac{c}{d} - \frac{2}{d{\left (e^{\left (-2 \, d x - 2 \, c\right )} + 1\right )}}\right )} + \frac{2 \, a}{d{\left (e^{\left (-2 \, d x - 2 \, c\right )} + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.51005, size = 101, normalized size = 5.32 \begin{align*} \frac{{\left (b d x - a + b\right )} \cosh \left (d x + c\right ) +{\left (a - b\right )} \sinh \left (d x + c\right )}{d \cosh \left (d x + c\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + b \sinh ^{2}{\left (c + d x \right )}\right ) \operatorname{sech}^{2}{\left (c + d x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.15137, size = 46, normalized size = 2.42 \begin{align*} \frac{{\left (d x + c\right )} b}{d} - \frac{2 \,{\left (a - b\right )}}{d{\left (e^{\left (2 \, d x + 2 \, c\right )} + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]